package com.alibaba.citrus.ots.platform.enhance.repository;

import com.alibaba.cz.base.tool.page.PageResult;
import com.epoch.app.otsplatformenhance.api.customersalescopequery.dto.BatchQueryCustomerSaleScopeRequest;
import com.epoch.app.otsplatformenhance.domain.customersalescope.model.CustomerSaleScope;
import com.epoch.app.otsplatformenhance.dto.request.QuerySaleScopeRequest;
import com.epoch.app.otsplatformenhance.sdo.CustomerSaleScopeSDO;

import java.util.List;

public interface CustomerSaleScopeRepository {
    /**
     * 编辑用户销售范围
     *
     * @param saleScopeSDO
     * @return
     */
    Boolean edit(CustomerSaleScopeSDO saleScopeSDO);


    /**
     * 根据用户编码查询销售范围
     *
     * @param saleScopeSDO
     * @return
     */
    List<CustomerSaleScopeSDO> queryList(CustomerSaleScopeSDO saleScopeSDO);

    /**
     * 分页查询客户销售范围
     *
     * @param request
     * @return
     */
    PageResult<List<CustomerSaleScopeSDO>> pageQuery(QuerySaleScopeRequest request);

    /**
     * 根据id查询
     *
     * @param id
     * @return
     */
    CustomerSaleScopeSDO load(String id);

    List<CustomerSaleScopeSDO> batchQueryCustomerSaleSCope(BatchQueryCustomerSaleScopeRequest batchQueryCustomerSaleScopeRequest);



}
